package com.ylc.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: ylc
 * @Description:
 * @Date Created in 2022-07-17 19:56
 */
@Component("subSchool")
public class SubSchool extends School{
    @Value("骊山校区")
    private String area;
    @Value("临潼区")
    private String subAddress;

    public SubSchool() {
        System.out.println("SubSchool的无参构造方法");
    }

    @Override
    public String toString() {
        return "SubSchool{" +
                "area='" + area + '\'' +
                ", subAddress='" + subAddress + '\'' +
                '}';
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getSubAddress() {
        return subAddress;
    }

    public void setSubAddress(String subAddress) {
        this.subAddress = subAddress;
    }
}
